<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   <f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{successBulletinList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="projectName" value="#{successBulletinList.parameterValues['projectName']}"></f:viewParam>
	   	<f:viewParam name="moduleName" value="评价修改"></f:viewParam>
   	</f:metadata>
    <ui:define name="content">
   		<h:form id="searchForm">
	   		<div style="height:50px;margin-left:10px">				
					<p:outputLabel value="项目名称:"></p:outputLabel>				
					<p:inputText value="#{successBulletinList.parameterValues['projectName']}"></p:inputText>
					
					<div class="actionButtons">
						<p:commandButton value="查询" ajax="false"  action="successBulletinList_forRate.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
						<p:button value="重置" outcome="successBulletinList_forRate.xhtml"></p:button>
					</div>				
					<div class="clearbt"></div>
				</div>
				<p:panel id="searchResult">
					<f:facet name="header">可修改评价的公告</f:facet>
					<p:dataTable value="#{successBulletinList.resultList}" var="_bulletin">
						
						<p:column>
							<f:facet name="header">项目名称</f:facet>
							#{_bulletin.projectName}
						</p:column>
						
						<p:column>
							<f:facet name="header">选取方式</f:facet>
							#{_bulletin.wayOfChoose.typeName}
						</p:column>
						<p:column>
							<f:facet name="header">采购单位</f:facet>
							#{_bulletin.buyer.cnname}
						</p:column>
						
						<p:column>
							<f:facet name="header">选取时间</f:facet>
							<h:outputText value="#{_bulletin.chooseTime}"  >
								<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
							</h:outputText>
						</p:column>
						
						<p:column>
							<f:facet name="header">中选中介</f:facet>
							<h:outputText value="#{_bulletin.successTrade.supplier.cnname}"></h:outputText>
						</p:column>
						
						<p:column>
							<f:facet name="header">成交时间</f:facet>
							<h:outputText value="#{_bulletin.overTime}"  >
								<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
							</h:outputText>
						</p:column>
						
						<p:column style="text-align: center">
							<f:facet name="header">操作</f:facet>
							<p:button value="评价修改" outcome="regrade.xhtml" rendered="#{not empty _bulletin.successTrade.tradeRating}" >
	   							<f:param name="tradeRatingId" value="#{_bulletin.successTrade.tradeRating.id}"></f:param>
	   						</p:button>
						</p:column>
					</p:dataTable>
				</p:panel>
				
				<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
					<ui:param name="entityList" value="#{successBulletinList}" />
				</ui:include>
   		</h:form>
   	</ui:define>
</ui:composition>
